package 线程;

public class 线程2 extends Thread {
    //1.自定义类，继承Thread类
    //2.重写run（）方法，编写执行体

    @Override
    public void run() {
        for (int i=1;i<=100;i++){
            System.out.println(Thread.currentThread().getName()+":"+i);
        }
    }

}
